<template>
  <div>
    <el-row>
      <el-col :span="24">
        <el-form :inline="true" class="demo-form-inline">
          <el-form-item label="">
            <el-input
              v-model="foodName"
              size="medium"
              placeholder="查询"
              clearable
            ></el-input>
          </el-form-item>
          <el-form-item>
            <el-button
              size="small"
              type="success"
              @click="getRecord"
              icon="el-icon-search"
              >查询</el-button
            >
          </el-form-item>
          <el-form-item label="">
            <el-button
              size="small"
              type="primary"
              @click="newest(1)"
              icon="el-icon-circle-plus-outline"
              >新增</el-button
            >
          </el-form-item>
        </el-form>
      </el-col>
      <el-col :span="24">
        <div>
          <el-table :data="tableData" border style="width: 100%">
            <el-table-column prop="name" label="类别" width="">
            </el-table-column>
            <el-table-column prop="name" label="编号" width="">
            </el-table-column>
            <el-table-column prop="name" label="企业名称" width="">
            </el-table-column>
            <el-table-column prop="name" label="联系人" width="">
            </el-table-column>
            <el-table-column prop="name" label="手机" width="">
            </el-table-column>
            <el-table-column prop="name" label="地址" width="">
            </el-table-column>
            <el-table-column prop="name" label="法人代表" width="">
            </el-table-column>
            <el-table-column prop="name" label="流动资金" width="">
            </el-table-column>
            <el-table-column prop="name" label="固定资产" width="">
            </el-table-column>
            <el-table-column prop="name" label="主要产品活技术" width="">
            </el-table-column>
            <el-table-column label="操作" width="250" align="center">
              <template #default="scope">
                <el-button type="success" size="mini">月度评价表</el-button>
                <el-button size="mini" @click="editorPara(scope.row, 2)"
                  >编辑</el-button
                >
                <el-button
                  size="mini"
                  type="danger"
                  @click="handleDelete(scope.row)"
                  >删除</el-button
                >
              </template>
            </el-table-column>
          </el-table>
        </div>
      </el-col>
    </el-row>
    <el-dialog
      :title="single"
      v-model="plassets"
      width="1000px"
      :close-on-click-modal="false"
    >
      <existing></existing>
    </el-dialog>
  </div>
</template>

<script>
import existing from "./existing.vue";
export default {
  components: {
    existing,
  },
  data() {
    return {
      foodName: "",
      plassets: false,
      single: "",
      under: 1,
      tableData: [
        {
          date: "2021/6/1",
          name: "......",
          date1: "********",
          address: "xxxx",
          address1: "xxxxx",
          address2: "xxxxxxx",
        },
      ],
    };
  },
  methods: {
    newest(index) {
      this.under = index;
      this.single = "新增供应商";
      this.plassets = true;
    },
    getRecord() {},
  },
};
</script>

<style scoped>
</style>